package com.java.yz.day14.Yield;

//礼让线程只是让线程之间看起来和谐一点，但是做不到你一次我一次
public class YieldThreadDemo1 {
    public static void main(String[] args) {
        MyYieldThread t1 = new MyYieldThread();
        MyYieldThread t2 = new MyYieldThread();

        t1.setName("yz");
        t2.setName("hy");

        t1.start();
        t2.start();
    }
}
